{* 
//////
//    @version [ Nightly Build ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://creativecommons.org/licenses/by-nc-nd/3.0/
//////
*}

<div style="text-align:left;padding:5px;margin:5px;border:1px solid #ccc;background:#f5f5ee;">
  <h3>Mass import videos from thirdparty</h3>

  <p></p>
</div>

<!--<div style="border:1px solid #c30;color:#333333;background:#e9ddd9;font-weight: bold;text-align:left;padding:5px;margin:5px;">{$smarty.const._HWDVIDS_IMPT_CSV_WARN}</div>-->

<div style="text-align:left;padding:5px;margin:5px;border:1px solid #ccc;">
<form action="index.php" method="post" enctype="multipart/form-data">

	<table cellpadding="4" cellspacing="1" border="0" id="tableForm">
	  <!--<tr>
	    <td valign="top">{$smarty.const._HWDVIDS_IMPT_MT}</td>
	    <td valign="top">
	      <select name="mediatype">
		<option value ="flv">Only FLV Videos</option>
		<option value ="mixed">Videos in Different Formats</option>
	      </select>    
	    </td>
	  </tr>-->
	  <tbody>
	  <tr>
	    <td valign="top">Xvideos Url:</td>
	    <td valign="top">
			<input type="text" name="url" size="150" />
	    </td>
	  </tr>
	  <tr>
	    <td valign="top">Asign tags</td>
	    <td valign="top">
	    </td>
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag" datafld="13" value="Maria,maria ozawa" size=230 /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag" datafld="3" size=230 value="animation,anime,hentai,hentail,animation, cartoon, cartoons" /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>	  
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag" datafld="4" size=230 value="vietnamese,vietnameses,hanoi, haiphong, Saigon,vietnam" /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag"  datafld="12"  size=230 value="children,child,liquid,liquidv,young,youngteen,teen,schoolteen,Younger" /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag"  datafld="2"  size=230 value="Aizawa,aisaki,gangbang,japanese,hasegawa,idols69,japan,japanese,japanse,Yukino,yumeno,yuzuru,Zeleznovova,Zuzana" /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag"  datafld="5" size=230 value="asian,asia,asiangirl,asians,bangkok,china,chinese,daughter,dubai,idol,thailan, thai, thaiand,Schoolgirl,Schoolgirls,singaporean,Singer" /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag" datafld="1" size=230 value="amater,amateru,amateu,amateur,amateure,amateurs,amatuer,doggstyle,forcedsex,forced,humiliation,humiliate,scandal,Scandan,scream,secret,shock," /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  <tr>
	    <td colspan="2"><input type="text" name="tag[]" class="utag"  datafld="6"  size=230 value="america,american,Anal,Angelina,bigcock,bigcock,brazilian,cowgirl,cunshots,cumshots,cumshot,eropean,erotica,euro,European,Europea,french,german,hadcore,russia,russian" /> 	    
			{$categoryselect}
			<input type="button" name="add" value="Add" />
	    </td>	
	  </tr>
	  </tbody>
	</table>
	
<br/>
<input type="submit" value="Import">
<input type="hidden" name="option" value="com_hwdvideoshare" />
<input type="hidden" name="task" value="massImport" />
<input type="hidden" name="hidemainmenu" value="0">
</form>
</div>
{literal}
<script language="javascript">
jQuery(document).ready(function(){
	jQuery('select[name=category_id]').attr('name','category_id[]');
	jQuery('input[name=add]').live('click',function(){
		el = jQuery('#tableForm tbody tr:last').clone();
		jQuery('#tableForm tbody').append(el);
		jQuery('#tableForm tbody input[name=add]').hide();
		jQuery('#tableForm tbody input[name=add]:last').show();
		
	});
	jQuery('input.utag').each(function(){
		jQuery(this).parent().find('select').val(jQuery(this).attr('datafld'));
	});
	
});
</script>
{/literal}